e8f8de710aacf53ec61d6b8932a872e3a116d137,core/baseLanguage/baseLanguage/solutions/jetbrains.mps.baseLanguage.search/source_gen/jetbrains/mps/baseLanguage/search/LocalVariablesScope.java,LocalVariablesScope,getNodes,#Condition#,36

Before Change


  public List<SNode> getNodes(Condition<SNode> condition) {
    if (this.myLocalVariables == null) {
      this.myLocalVariables = new ArrayList<SNode>();
      ILocalVariableElementList statementList = LocalVariablesScope.findThisOrParent(this.myContextNode, ILocalVariableElementList.class);
      if (statementList != null) {
        ILocalVariableElement currentStatement = LocalVariablesScope.findThisOrParent(this.myContextNode, ILocalVariableElement.class);
        this._populateLocalVariables(statementList, currentStatement, this.myLocalVariables);

After Change


  public List<SNode> getNodes(Condition<SNode> condition) {
    if (this.myLocalVariables == null) {
      this.myLocalVariables = new ArrayList<SNode>();
      SNode statementList = SNodeOperations.as(LocalVariablesScope.findThisOrParent(this.myContextNode, SConceptOperations.findConceptDeclaration("jetbrains.mps.baseLanguage.structure.ILocalVariableElementList")), "jetbrains.mps.baseLanguage.structure.ILocalVariableElementList");
      if (statementList != null) {
        SNode currentStatement = SNodeOperations.as(LocalVariablesScope.findThisOrParent(this.myContextNode, SConceptOperations.findConceptDeclaration("jetbrains.mps.baseLanguage.structure.ILocalVariableElement")), "jetbrains.mps.baseLanguage.structure.ILocalVariableElement");
        this._populateLocalVariables(statementList, currentStatement, this.myLocalVariables);